package com.zzyl.serve.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

import com.zzyl.serve.domain.MemberReservation;

/**
 * 预约信息Mapper接口
 *
 * @author ruoyi
 * @date 2025-05-09
 */
@Mapper
public interface MemberReservationMapper extends BaseMapper<MemberReservation>
{
    /**
     * 根据用户ID查询取消预约信息
     *
     * @param userId 用户ID
     * @return 预约信息
     */
    List<MemberReservation> getCancelledById(Long userId);

    /**
     * 根据时间查询预约信息
     *
     * @param time 时间
     * @return 预约信息
     */
    Map<Long, Integer> getCountByTime(Long time);
}
